<!--#include("./_header.html")-->
<!--%import("filter/insert_directory.xml")-->

<h3 class="xeAdmin">{$lang->root_directory}</h3>
<table cellspacing="0" class="colTable">
<caption>Total {number_format($directories)}</caption>
<thead>
    <tr>
        <th scope="col"><div>{$lang->title}</div></th>
        <th scope="col"><div>{$lang->description}</div></th>
        <th scope="col"><div>{$lang->regdate}</div></th>
        <th scope="col"><div>&nbsp;</div></th>
    </tr>
</thead>
<tbody>
    <!--@foreach($directories as $no => $val)-->
    <tr>
        <td><a href="{getUrl('project_dir_srl',$val->project_dir_srl)}">{htmlspecialchars($val->title)}</a> ({number_format($val->count)})</td>
        <td>{htmlspecialchars($val->description)}</td>
        <td>{zdate($val->regdate,"Y-m-d")}</td>
        <td>
            <a href="{getUrl('act','dispProjectAdminDirectoryModify','project_dir_srl',$val->project_dir_srl)}" class="buttonSet buttonSetting"><span>{$lang->cmd_modify}</span></a>
            <a href="#" onclick="if(confirm('{$lang->confirm_delete}')) doDeleteDirectory({$val->project_dir_srl}); return false;" class="buttonSet buttonDelete"><span>{$lang->cmd_delete}</span></a>
        </td>
    </tr>
    <!--@end-->
</tbody>
</table>

<!--@if($sub_directories)-->
<h3 class="xeAdmin">{$lang->sub_directory} : {$directory->title}</h3>
<table cellspacing="0" class="colTable">
<caption>Total: {number_format($sub_directories)}</caption>
<thead>
    <tr>
        <th scope="col"><div>{$lang->title}</div></th>
        <th scope="col"><div>{$lang->description}</div></th>
        <th scope="col"><div>{$lang->regdate}</div></th>
        <th scope="col"><div>&nbsp;</div></th>
    </tr>
</thead>
<tbody>
    <!--@foreach($sub_directories as $no => $val)-->
    <tr>
        <td>{htmlspecialchars($val->title)}</a></td>
        <td>{htmlspecialchars($val->description)}</td>
        <td>{zdate($val->regdate,"Y-m-d")}</td>
        <td>
            <a href="{getUrl('act','dispProjectAdminDirectoryModify','project_dir_srl',$val->project_dir_srl)}" class="buttonSet buttonSetting"><span>{$lang->cmd_modify}</span></a>
            <a href="#" onclick="if(confirm('{$lang->confirm_delete}')) doDeleteDirectory({$val->project_dir_srl}); return false;" class="buttonSet buttonDelete"><span>{$lang->cmd_delete}</span></a>
        </td>
    </tr>
    <!--@end-->
</tbody>
</table>
<!--@end-->

<form action="./" method="post" onsubmit="return procFilter(this, insert_directory)" id="projectFo">
    <input type="hidden" name="parent_directory_srl" value="{$project_dir_srl}" />
    <!--@if(!$project_dir_srl)-->
    <h3 class="xeAdmin">{$lang->cmd_make_directory}</h3>
    <!--@else-->
    <h3 class="xeAdmin">{$lang->cmd_make_sub_directory}</h3>
    <!--@end-->
    <table cellspacing="0" class="crossTable">
    <!--@if($project_dir_srl)-->
    <thead>
        <tr>
            <th scope="row" colspan="2">{$directory->title}</th>
        </tr>
    </thead>
    <!--@end-->
    <tbody>
        <tr>
            <th scope="row"><div>{$lang->title}</div></th>
            <td><input type="text" name="title" value="" class="inputTypeText w200" /></td>
        </tr>
        <tr>
            <th scope="row"><div>{$lang->description}</div></th>
            <td><textarea name="description" cols="60" rows="6" class="inputTypeTextArea" /></textarea></td>
        </tr>
        <tr class="row2">
            <th colspan="2" class="button">
                <span class="button black strong"><input type="submit" value="{$lang->cmd_directory_registration}" accesskey="s" /></span>
                <!--@if($project_dir_srl)-->
                <span class="button"><input type="button" value="{$lang->cmd_back}" onclick="location.href='{getUrl('project_dir_srl','')}';return false;" /></span>
                <!--@end-->
            </th>
        </tr>
    </tbody>
    </table>
</form>



<!--#include("./_foot.html")-->
